/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.HoaDonDatTiecBLL;
import edu.nii.qlks.DataTransferObject.HoaDonDatTiecInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class HoaDonDatTiecControl {
    
    HoaDonDatTiecBLL HoaDonDatTiec = new HoaDonDatTiecBLL();
    
    public ArrayList LayDS() throws Exception{
        return HoaDonDatTiec.LayDS();
    }
        
    public void Insert(HoaDonDatTiecInfo hoaDonDatTiecInfo) throws Exception{
        HoaDonDatTiec.Insert(hoaDonDatTiecInfo);
    }
    
    public void Update(HoaDonDatTiecInfo hoaDonDatTiecInfo) throws Exception{
        HoaDonDatTiec.Update(hoaDonDatTiecInfo);
    }
    
    public void Delete(HoaDonDatTiecInfo hoaDonDatTiecInfo) throws Exception{
        HoaDonDatTiec.Delete(hoaDonDatTiecInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return HoaDonDatTiec.TaoMaTuDong(maGoc, batDau);
     }
    
     
}
